<!DOCTYPE HTML>

<html lang="en">
<head>

<title>SpringSecurityLdapTemplate (spring-security-docs 5.6.3 API)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
    try {
        if (location.href.indexOf('is-external=true') == -1) {
            parent.document.title="SpringSecurityLdapTemplate (spring-security-docs 5.6.3 API)";
        }
    }
    catch(err) {
    }
//-->
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":9,"i6":10};
var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = true;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">

<div class="topNav"><a id="navbar.top">

</a>
<div class="skipNav"><a href="SpringSecurityLdapTemplate.html#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">

</a></div>

</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>

<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">org.springframework.security.ldap</a></div>
<h2 title="Class SpringSecurityLdapTemplate" class="title">Class SpringSecurityLdapTemplate</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li>org.springframework.ldap.core.LdapTemplate</li>
<li>
<ul class="inheritance">
<li>org.springframework.security.ldap.SpringSecurityLdapTemplate</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Implemented Interfaces:</dt>
<dd><code>org.springframework.beans.factory.InitializingBean</code>, <code>org.springframework.ldap.core.LdapOperations</code></dd>
</dl>
<hr>
<pre>public class <span class="typeNameLabel">SpringSecurityLdapTemplate</span>
extends org.springframework.ldap.core.LdapTemplate</pre>
<div class="block">Extension of Spring LDAP's LdapTemplate class which adds extra functionality required
by Spring Security.</div>
<dl>
<dt><span class="simpleTagLabel">Since:</span></dt>
<dd>2.0</dd>
</dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">

</a>
<h3>Nested Class Summary</h3>
<ul class="blockList">
<li class="blockList"><a id="nested.classes.inherited.from.class.org.springframework.ldap.core.LdapTemplate">

</a>
<h3>Nested classes/interfaces inherited from class&nbsp;org.springframework.ldap.core.LdapTemplate</h3>
<code>org.springframework.ldap.core.LdapTemplate.MappingCollectingNameClassPairCallbackHandler&lt;T extends java.lang.Object&gt;, org.springframework.ldap.core.LdapTemplate.NullDirContextProcessor</code></li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">

</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static java.lang.String</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#DN_KEY">DN_KEY</a></span></code></th>
<td class="colLast">
<div class="block">Every search results where a record is defined by a Map&lt;String,String[]&gt;
contains at least this key - the DN of the record itself.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static java.lang.String[]</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#NO_ATTRS">NO_ATTRS</a></span></code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.summary">

</a>
<h3>Constructor Summary</h3>
<table class="memberSummary">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Constructor</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#%3Cinit%3E(org.springframework.ldap.core.ContextSource)">SpringSecurityLdapTemplate</a></span>&#8203;(org.springframework.ldap.core.ContextSource&nbsp;contextSource)</code></th>
<td class="colLast">&nbsp;</td>
</tr>
</table>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">

</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#compare(java.lang.String,java.lang.String,java.lang.Object)">compare</a></span>&#8203;(java.lang.String&nbsp;dn,
java.lang.String&nbsp;attributeName,
java.lang.Object&nbsp;value)</code></th>
<td class="colLast">
<div class="block">Performs an LDAP compare operation of the value of an attribute for a particular
directory entry.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>org.springframework.ldap.core.DirContextOperations</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#retrieveEntry(java.lang.String,java.lang.String%5B%5D)">retrieveEntry</a></span>&#8203;(java.lang.String&nbsp;dn,
java.lang.String[]&nbsp;attributesToRetrieve)</code></th>
<td class="colLast">
<div class="block">Composes an object from the attributes of the given DN.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>java.util.Set&lt;java.util.Map&lt;java.lang.String,&#8203;java.util.List&lt;java.lang.String&gt;&gt;&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#searchForMultipleAttributeValues(java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String%5B%5D)">searchForMultipleAttributeValues</a></span>&#8203;(java.lang.String&nbsp;base,
java.lang.String&nbsp;filter,
java.lang.Object[]&nbsp;params,
java.lang.String[]&nbsp;attributeNames)</code></th>
<td class="colLast">
<div class="block">Performs a search using the supplied filter and returns the values of each named
attribute found in all entries matched by the search.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>java.util.Set&lt;java.lang.String&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#searchForSingleAttributeValues(java.lang.String,java.lang.String,java.lang.Object%5B%5D,java.lang.String)">searchForSingleAttributeValues</a></span>&#8203;(java.lang.String&nbsp;base,
java.lang.String&nbsp;filter,
java.lang.Object[]&nbsp;params,
java.lang.String&nbsp;attributeName)</code></th>
<td class="colLast">
<div class="block">Performs a search using the supplied filter and returns the union of the values of
the named attribute found in all entries matched by the search.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>org.springframework.ldap.core.DirContextOperations</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#searchForSingleEntry(java.lang.String,java.lang.String,java.lang.Object%5B%5D)">searchForSingleEntry</a></span>&#8203;(java.lang.String&nbsp;base,
java.lang.String&nbsp;filter,
java.lang.Object[]&nbsp;params)</code></th>
<td class="colLast">
<div class="block">Performs a search, with the requirement that the search shall return a single
directory entry, and uses the supplied mapper to create the object from that entry.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>static org.springframework.ldap.core.DirContextOperations</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#searchForSingleEntryInternal(javax.naming.directory.DirContext,javax.naming.directory.SearchControls,java.lang.String,java.lang.String,java.lang.Object%5B%5D)">searchForSingleEntryInternal</a></span>&#8203;(javax.naming.directory.DirContext&nbsp;ctx,
javax.naming.directory.SearchControls&nbsp;searchControls,
java.lang.String&nbsp;base,
java.lang.String&nbsp;filter,
java.lang.Object[]&nbsp;params)</code></th>
<td class="colLast">
<div class="block">Internal method extracted to avoid code duplication in AD search.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="SpringSecurityLdapTemplate.html#setSearchControls(javax.naming.directory.SearchControls)">setSearchControls</a></span>&#8203;(javax.naming.directory.SearchControls&nbsp;searchControls)</code></th>
<td class="colLast">
<div class="block">Sets the search controls which will be used for search operations by the template.</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.org.springframework.ldap.core.LdapTemplate">

</a>
<h3>Methods inherited from class&nbsp;org.springframework.ldap.core.LdapTemplate</h3>
<code>afterPropertiesSet, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, authenticate, bind, bind, bind, create, delete, deleteRecursively, executeReadOnly, executeReadWrite, find, find, findAll, findAll, findByDn, findOne, getContextSource, getObjectDirectoryMapper, list, list, list, list, list, list, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, listBindings, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookup, lookupContext, lookupContext, modifyAttributes, modifyAttributes, modifyAttributes, rebind, rebind, rebind, rename, rename, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, search, searchForContext, searchForObject, searchForObject, searchForObject, searchForObject, searchForObject, setContextSource, setDefaultCountLimit, setDefaultSearchScope, setDefaultTimeLimit, setIgnoreNameNotFoundException, setIgnorePartialResultException, setIgnoreSizeLimitExceededException, setObjectDirectoryMapper, unbind, unbind, unbind, unbind, update</code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">

</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">

</a>
<h3>Field Detail</h3>
<a id="NO_ATTRS">

</a>
<ul class="blockList">
<li class="blockList">
<h4>NO_ATTRS</h4>
<pre>public static final&nbsp;java.lang.String[] NO_ATTRS</pre>
</li>
</ul>
<a id="DN_KEY">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>DN_KEY</h4>
<pre>public static final&nbsp;java.lang.String DN_KEY</pre>
<div class="block">Every search results where a record is defined by a Map&lt;String,String[]&gt;
contains at least this key - the DN of the record itself.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#org.springframework.security.ldap.SpringSecurityLdapTemplate.DN_KEY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="constructor.detail">

</a>
<h3>Constructor Detail</h3>
<a id="&lt;init&gt;(org.springframework.ldap.core.ContextSource)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>SpringSecurityLdapTemplate</h4>
<pre>public&nbsp;SpringSecurityLdapTemplate&#8203;(org.springframework.ldap.core.ContextSource&nbsp;contextSource)</pre>
</li>
</ul>
</li>
</ul>
</section>

<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">

</a>
<h3>Method Detail</h3>
<a id="compare(java.lang.String,java.lang.String,java.lang.Object)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>compare</h4>
<pre class="methodSignature">public&nbsp;boolean&nbsp;compare&#8203;(java.lang.String&nbsp;dn,
                       java.lang.String&nbsp;attributeName,
                       java.lang.Object&nbsp;value)</pre>
<div class="block">Performs an LDAP compare operation of the value of an attribute for a particular
directory entry.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dn</code> - the entry who's attribute is to be used</dd>
<dd><code>attributeName</code> - the attribute who's value we want to compare</dd>
<dd><code>value</code> - the value to be checked against the directory value</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>true if the supplied value matches that in the directory</dd>
</dl>
</li>
</ul>
<a id="retrieveEntry(java.lang.String,java.lang.String[])">

</a>
<ul class="blockList">
<li class="blockList">
<h4>retrieveEntry</h4>
<pre class="methodSignature">public&nbsp;org.springframework.ldap.core.DirContextOperations&nbsp;retrieveEntry&#8203;(java.lang.String&nbsp;dn,
                                                                        java.lang.String[]&nbsp;attributesToRetrieve)</pre>
<div class="block">Composes an object from the attributes of the given DN.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>dn</code> - the directory entry which will be read</dd>
<dd><code>attributesToRetrieve</code> - the named attributes which will be retrieved from the
directory entry.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the object created by the mapper</dd>
</dl>
</li>
</ul>
<a id="searchForSingleAttributeValues(java.lang.String,java.lang.String,java.lang.Object[],java.lang.String)">

</a>
<ul class="blockList">
<li class="blockList">
<h4>searchForSingleAttributeValues</h4>
<pre class="methodSignature">public&nbsp;java.util.Set&lt;java.lang.String&gt;&nbsp;searchForSingleAttributeValues&#8203;(java.lang.String&nbsp;base,
                                                                      java.lang.String&nbsp;filter,
                                                                      java.lang.Object[]&nbsp;params,
                                                                      java.lang.String&nbsp;attributeName)</pre>
<div class="block">Performs a search using the supplied filter and returns the union of the values of
the named attribute found in all entries matched by the search. Note that one
directory entry may have several values for the attribute. Intended for role
searches and similar scenarios.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>base</code> - the DN to search in</dd>
<dd><code>filter</code> - search filter to use</dd>
<dd><code>params</code> - the parameters to substitute in the search filter</dd>
<dd><code>attributeName</code> - the attribute who's values are to be retrieved.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of String values for the attribute as a union of the values found
in all the matching entries.</dd>
</dl>
</li>
</ul>
<a id="searchForMultipleAttributeValues(java.lang.String,java.lang.String,java.lang.Object[],java.lang.String[])">

</a>
<ul class="blockList">
<li class="blockList">
<h4>searchForMultipleAttributeValues</h4>
<pre class="methodSignature">public&nbsp;java.util.Set&lt;java.util.Map&lt;java.lang.String,&#8203;java.util.List&lt;java.lang.String&gt;&gt;&gt;&nbsp;searchForMultipleAttributeValues&#8203;(java.lang.String&nbsp;base,
                                                                                                                              java.lang.String&nbsp;filter,
                                                                                                                              java.lang.Object[]&nbsp;params,
                                                                                                                              java.lang.String[]&nbsp;attributeNames)</pre>
<div class="block">Performs a search using the supplied filter and returns the values of each named
attribute found in all entries matched by the search. Note that one directory entry
may have several values for the attribute. Intended for role searches and similar
scenarios.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>base</code> - the DN to search in</dd>
<dd><code>filter</code> - search filter to use</dd>
<dd><code>params</code> - the parameters to substitute in the search filter</dd>
<dd><code>attributeNames</code> - the attributes' values that are to be retrieved.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>the set of String values for each attribute found in all the matching
entries. The attribute name is the key for each set of values. In addition each map
contains the DN as a String with the key predefined key <a href="SpringSecurityLdapTemplate.html#DN_KEY"><code>DN_KEY</code></a>.</dd>
</dl>
</li>
</ul>
<a id="searchForSingleEntry(java.lang.String,java.lang.String,java.lang.Object[])">

</a>
<ul class="blockList">
<li class="blockList">
<h4>searchForSingleEntry</h4>
<pre class="methodSignature">public&nbsp;org.springframework.ldap.core.DirContextOperations&nbsp;searchForSingleEntry&#8203;(java.lang.String&nbsp;base,
                                                                               java.lang.String&nbsp;filter,
                                                                               java.lang.Object[]&nbsp;params)</pre>
<div class="block">Performs a search, with the requirement that the search shall return a single
directory entry, and uses the supplied mapper to create the object from that entry.
<p>
Ignores <tt>PartialResultException</tt> if thrown, for compatibility with Active
Directory (see <code>LdapTemplate.setIgnorePartialResultException(boolean)</code>).</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>base</code> - the search base, relative to the base context supplied by the context
source.</dd>
<dd><code>filter</code> - the LDAP search filter</dd>
<dd><code>params</code> - parameters to be substituted in the search.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>a DirContextOperations instance created from the matching entry.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>org.springframework.dao.IncorrectResultSizeDataAccessException</code> - if no results are found or the
search returns more than one result.</dd>
</dl>
</li>
</ul>
<a id="searchForSingleEntryInternal(javax.naming.directory.DirContext,javax.naming.directory.SearchControls,java.lang.String,java.lang.String,java.lang.Object[])">

</a>
<ul class="blockList">
<li class="blockList">
<h4>searchForSingleEntryInternal</h4>
<pre class="methodSignature">public static&nbsp;org.springframework.ldap.core.DirContextOperations&nbsp;searchForSingleEntryInternal&#8203;(javax.naming.directory.DirContext&nbsp;ctx,
                                                                                              javax.naming.directory.SearchControls&nbsp;searchControls,
                                                                                              java.lang.String&nbsp;base,
                                                                                              java.lang.String&nbsp;filter,
                                                                                              java.lang.Object[]&nbsp;params)
                                                                                       throws javax.naming.NamingException</pre>
<div class="block">Internal method extracted to avoid code duplication in AD search.</div>
<dl>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code>javax.naming.NamingException</code></dd>
</dl>
</li>
</ul>
<a id="setSearchControls(javax.naming.directory.SearchControls)">

</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setSearchControls</h4>
<pre class="methodSignature">public&nbsp;void&nbsp;setSearchControls&#8203;(javax.naming.directory.SearchControls&nbsp;searchControls)</pre>
<div class="block">Sets the search controls which will be used for search operations by the template.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>searchControls</code> - the SearchControls instance which will be cached in the
template.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>

<footer role="contentinfo">
<nav role="navigation">

<div class="bottomNav"><a id="navbar.bottom">

</a>
<div class="skipNav"><a href="SpringSecurityLdapTemplate.html#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">

</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#constructor.summary">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#constructor.detail">Constr</a>&nbsp;|&nbsp;</li>
<li><a href="SpringSecurityLdapTemplate.html#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">

</a></div>

</nav>
</footer>
<script>if (window.parent == window) {(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','//www.google-analytics.com/analytics.js','ga');ga('create', 'UA-2728886-23', 'auto', {'siteSpeedSampleRate': 100});ga('send', 'pageview');}</script><script defer src="https://static.cloudflareinsights.com/beacon.min.js/v652eace1692a40cfa3763df669d7439c1639079717194" integrity="sha512-Gi7xpJR8tSkrpF7aordPZQlW2DLtzUlZcumS8dMQjwDHEnw9I7ZLyiOj/6tZStRBGtGgN6ceN6cMH8z7etPGlw==" data-cf-beacon='{"rayId":"7040e2966b5497cf","token":"bffcb8a918ae4755926f76178bfbd26b","version":"2021.12.0","si":100}' crossorigin="anonymous"></script>
</body>
</html>
